#include <stdio.h>

#define MAX(a, b) ((a) > (b) ? (a) : (b))

int main(int argc, char *argv[])
{
    if (argc < 3)
    {
        printf("Please provide two numbers as command-line arguments.\n");
        return 1;
    }

    //将字符串类型转为int类型
    int num1 = atoi(argv[1]);
    int num2 = atoi(argv[2]);

    int max = MAX(num1, num2);
    printf("The max is: %d\n", max);

    return 0;
}